<template>
  <quick-layout
    ref="Instance"
    :is-operate-btn="true"
    :is-operate="true"
    :data-list-url="dataListUrl"
    :delete-url="deleteUrl"
    :export-url="exportUrl"
    :import-url="importUrl"
    table-title="环境隐患排查信息"
    :is-row-model="true"
    label-width="150px"
    size="small"
    @edit="handleEdit"
    @created="handleEdit(null)"
  >
    <template v-slot:query="{query,reset}">
      <query-item label="模糊查询">
        <el-input v-model="query.keyword" style="width: 270px" placeholder="请输入关键词..." />
      </query-item>
      <query-item label="ID" prop="id">
        <el-input v-model="query.id" placeholder="ID" />
      </query-item>
      <query-item label="业务主键" prop="businessKey">
        <el-input v-model="query.businessKey" placeholder="业务主键" />
      </query-item>
      <query-item label="附件ID" prop="attachId">
        <el-input v-model="query.attachId" placeholder="附件ID" />
      </query-item>
      <query-item label="领域" prop="domain">
        <el-input v-model="query.domain" placeholder="领域" />
      </query-item>
      <query-item label="大修轮次" prop="overhaulRotation">
        <el-input v-model="query.overhaulRotation" placeholder="大修轮次" />
      </query-item>
      <query-item label="检查日期" prop="checkDate">
        <el-input v-model="query.checkDate" placeholder="检查日期" />
      </query-item>
      <query-item label="专项检查名称" prop="specialInspectionName">
        <el-input v-model="query.specialInspectionName" placeholder="专项检查名称" />
      </query-item>
      <query-item label="类别" prop="category">
        <el-input v-model="query.category" placeholder="类别" />
      </query-item>
      <query-item label="分级" prop="grading">
        <el-input v-model="query.grading" placeholder="分级" />
      </query-item>
      <query-item label="发现问题" prop="findProblem">
        <el-input v-model="query.findProblem" placeholder="发现问题" />
      </query-item>
      <query-item label="法律法规" prop="law">
        <el-input v-model="query.law" placeholder="法律法规" />
      </query-item>
      <query-item label="现场照片" prop="scenePhoto">
        <el-input v-model="query.scenePhoto" placeholder="现场照片" />
      </query-item>
      <query-item label="整改要求" prop="rectification">
        <el-input v-model="query.rectification" placeholder="整改要求" />
      </query-item>
      <query-item label="责任单位" prop="responsibleUnit">
        <el-input v-model="query.responsibleUnit" placeholder="责任单位" />
      </query-item>
      <query-item label="责任单位责任人员工号" prop="responsibleUnitUserCode">
        <el-input v-model="query.responsibleUnitUserCode" placeholder="责任单位责任人员工号" />
      </query-item>
      <query-item label="责任单位责任人员姓名" prop="responsibleUnitUserName">
        <el-input v-model="query.responsibleUnitUserName" placeholder="责任单位责任人员姓名" />
      </query-item>
      <query-item label="管理部门" prop="manage">
        <el-input v-model="query.manage" placeholder="管理部门" />
      </query-item>
      <query-item label="管理单位责任人员工号" prop="manageUnitUserCode">
        <el-input v-model="query.manageUnitUserCode" placeholder="管理单位责任人员工号" />
      </query-item>
      <query-item label="管理单位责任人员姓名" prop="manageUnitUserName">
        <el-input v-model="query.manageUnitUserName" placeholder="管理单位责任人员姓名" />
      </query-item>
      <query-item label="整改期限" prop="rectificationLimitTime">
        <el-input v-model="query.rectificationLimitTime" placeholder="整改期限" />
      </query-item>
      <query-item label="提醒天数" prop="remindNumber">
        <el-input v-model="query.remindNumber" placeholder="提醒天数" />
      </query-item>
      <query-item label="是否已有任务督办" prop="taskSupervisorStatus">
        <el-input v-model="query.taskSupervisorStatus" placeholder="是否已有任务督办" />
      </query-item>
      <query-item label="任务督办号" prop="taskSupervisorCode">
        <el-input v-model="query.taskSupervisorCode" placeholder="任务督办号" />
      </query-item>
      <query-item label="是否立行立改" prop="legislativeReformStatus">
        <el-input v-model="query.legislativeReformStatus" placeholder="是否立行立改" />
      </query-item>
      <query-item label="备注" prop="remark">
        <el-input v-model="query.remark" placeholder="备注" />
      </query-item>
      <query-item label="创建人工号" prop="createdUserCode">
        <el-input v-model="query.createdUserCode" placeholder="创建人工号" />
      </query-item>
      <query-item label="创建人姓名" prop="createdUserName">
        <el-input v-model="query.createdUserName" placeholder="创建人姓名" />
      </query-item>
      <query-item label="创建时间" prop="createdTime">
        <el-input v-model="query.createdTime" placeholder="创建时间" />
      </query-item>
      <query-item label="修改人工号" prop="updatedUserCode">
        <el-input v-model="query.updatedUserCode" placeholder="修改人工号" />
      </query-item>
      <query-item label="修改人姓名" prop="updatedUserName">
        <el-input v-model="query.updatedUserName" placeholder="修改人姓名" />
      </query-item>
      <query-item label="修改时间" prop="updatedTime">
        <el-input v-model="query.updatedTime" placeholder="修改时间" />
      </query-item>
      <query-item label="删除标志" prop="delFlag">
        <el-input v-model="query.delFlag" placeholder="删除标志" />
      </query-item>
    </template>
    <template>
      <el-table-column type="selection" header-align="center" align="center" width="50" />
      <el-table-column prop="id" label="ID" header-align="center" align="center" />
      <el-table-column prop="businessKey" label="业务主键" header-align="center" align="center" />
      <el-table-column prop="attachId" label="附件ID" header-align="center" align="center" />
      <el-table-column prop="domain" label="领域" header-align="center" align="center" />
      <el-table-column prop="overhaulRotation" label="大修轮次" header-align="center" align="center" />
      <el-table-column prop="checkDate" label="检查日期" header-align="center" align="center" />
      <el-table-column prop="specialInspectionName" label="专项检查名称" header-align="center" align="center" />
      <el-table-column prop="category" label="类别" header-align="center" align="center" />
      <el-table-column prop="grading" label="分级" header-align="center" align="center" />
      <el-table-column prop="findProblem" label="发现问题" header-align="center" align="center" />
      <el-table-column prop="law" label="法律法规" header-align="center" align="center" />
      <el-table-column prop="scenePhoto" label="现场照片" header-align="center" align="center" />
      <el-table-column prop="rectification" label="整改要求" header-align="center" align="center" />
      <el-table-column prop="responsibleUnit" label="责任单位" header-align="center" align="center" />
      <el-table-column prop="responsibleUnitUserCode" label="责任单位责任人员工号" header-align="center" align="center" />
      <el-table-column prop="responsibleUnitUserName" label="责任单位责任人员姓名" header-align="center" align="center" />
      <el-table-column prop="manage" label="管理部门" header-align="center" align="center" />
      <el-table-column prop="manageUnitUserCode" label="管理单位责任人员工号" header-align="center" align="center" />
      <el-table-column prop="manageUnitUserName" label="管理单位责任人员姓名" header-align="center" align="center" />
      <el-table-column prop="rectificationLimitTime" label="整改期限" header-align="center" align="center" />
      <el-table-column prop="remindNumber" label="提醒天数" header-align="center" align="center" />
      <el-table-column prop="taskSupervisorStatus" label="是否已有任务督办" header-align="center" align="center" />
      <el-table-column prop="taskSupervisorCode" label="任务督办号" header-align="center" align="center" />
      <el-table-column prop="legislativeReformStatus" label="是否立行立改" header-align="center" align="center" />
      <el-table-column prop="remark" label="备注" header-align="center" align="center" />
      <el-table-column prop="createdUserCode" label="创建人工号" header-align="center" align="center" />
      <el-table-column prop="createdUserName" label="创建人姓名" header-align="center" align="center" />
      <el-table-column prop="createdTime" label="创建时间" header-align="center" align="center" />
      <el-table-column prop="updatedUserCode" label="修改人工号" header-align="center" align="center" />
      <el-table-column prop="updatedUserName" label="修改人姓名" header-align="center" align="center" />
      <el-table-column prop="updatedTime" label="修改时间" header-align="center" align="center" />
      <el-table-column prop="delFlag" label="删除标志" header-align="center" align="center" />
    </template>
    <template #component>
      <add-or-update ref="addOrUpdateRef" @refreshDataList="getDataList" />
    </template>
  </quick-layout>
</template>

<script>
import AddOrUpdate from './add-or-update.vue'
import QuickLayout from '@/components/EmpsLayout/index.vue'
import QueryItem from '@/components/QueryItem/index.vue'

export default {
  name: 'EnvironmentalHiddenDanger',
  components: { QuickLayout, QueryItem, AddOrUpdate },
  data() {
    return {
      dataListUrl: '/business/environmental_hidden_danger/page',
      deleteUrl: '/business/environmental_hidden_danger',
      exportUrl: '/business/environmental_hidden_danger/export',
      importUrl: '/business/environmental_hidden_danger/import',
      businessEnum: []
    }
  },
  created() {
    this.getBusinessEnum()
  },
  methods: {
    getInstance() {
      return this.$ref.Instance
    },
    handleEdit(id) {
      this.$refs.addOrUpdateRef.init(id)
    },
    getDataList() {
      this.getInstance().query()
    }
  }
}
</script>
